<script setup lang="ts"></script>

<template>
  <main>
    <div class="top-banner">
      <div class="banner-cont">
        <div class="banner-title">
          <h2>一个强大且平衡的商业平台</h2>
          <p>我们的使命是有效保护和促进企业利益</p>
        </div>

        <p class="banner-more">
          <span>阅读更多</span>
          <img src="@/assets/home/jiantou.png" alt="" />
        </p>
      </div>
      <el-carousel :interval="5000" arrow="always">
        <el-carousel-item v-for="item in 4" :key="item">
          <img src="@/assets/home/1.png" alt="" class="lunbo-img" />
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="container">
     <section class="about-us">
      <div class="about-content">
        <div class="about-left">
          <img src="@/assets/home/2.png" alt="关于我们" />
        </div>
        <div class="about-right">
          <div class="section-title">
            <span>了解我们的商会</span>
            <h2>越南中国商会安徽企业联合会概况</h2>
          </div>
          <p>
            越南中国商会安徽企业联合会成立于2018年，拥有企业和个人会员近200家，涉及化工、机械、纺织、家具等行业，包括江淮汽车、龙磁科技、洽洽食品等知名企业。
          </p>
          <p>
            越南中国商会安徽企业联合会成立于2018年，拥有企业和个人会员近200家，涉及化工、机械、纺织、家具等行业，包括江淮汽车、龙磁科技、洽洽食品等知名企业。
          </p>
          <div class="more-info">
            <span>查看更多</span>
            <img src="@/assets/home/arrow.png" alt="箭头" />
          </div>
        </div>
      </div>
      <div class="about-us-en">ABOUT US</div>
    </section>

    <div class="content">
      <div class="title">
        <h2>重要新闻</h2>
        <p>聚焦商会新闻，熟悉商会动态，快速了解您身边的资讯</p>
      </div>
      <div class="news">
        <div class="news-item">
          <div class="top-img">
            <img src="@/assets/home/news1.png" alt="" />
            <p>越媒：越南副总理胡德福：保持汇率稳定，推动经济增长</p>
          </div>
          <div class="bottom-cont">
            <p>
              2025年6月25日上午，黑龙江省人民政府外事办公室李胜彬副主任一行拜访越南中...
            </p>
            <p>2025.03.15</p>
          </div>
        </div>
        <div class="news-item">
          <div class="top-img">
            <img src="@/assets/home/news2.png" alt="" />
            <p>越媒：2025年上半年越南经济增长率为7.52% 创15年新高</p>
          </div>
          <div class="bottom-cont">
            <p>
              2025年6月25日上午，黑龙江省人民政府外事办公室李胜彬副主任一行拜访越南中...
            </p>
            <p>2025.03.15</p>
          </div>
        </div>
      </div>
    </div>
    <div class="content lunbo-img-box">
      <div class="title">
        <h2>会员服务</h2>
        <p>聚焦商会新闻，熟悉商会动态，快速了解您身边的资讯</p>
      </div>

      <img src="@/assets/home/arrow2.png" class="left-arrow arrow" alt="" />
      <img src="@/assets/home/arrow1.png" class="right-arrow arrow" alt="" />
      <el-carousel :interval="5000" arrow="always">
        <el-carousel-item v-for="item in 4" :key="item">
          <div class="lunbo-img-box">
            <img src="@/assets/home/11.png" alt="" class="lunbo-img" />
            <img src="@/assets/home/12.png" alt="" class="lunbo-img" />
            <img src="@/assets/home/13.png" alt="" class="lunbo-img" />
          </div>
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="content">
      <div class="title">
        <h2>会员展示</h2>
        <p>聚焦商会新闻，熟悉商会动态，快速了解您身边的资讯</p>
      </div>
      <section class="member-showcase">
        <div class="member-content">
          <div class="member-list">
            <div class="member-column">
              <div class="member-item">越南信诺化工责任有限公司</div>
              <div class="member-item">越南青姮贸易有限公司</div>
              <div class="member-item">平阳磐石建设有限公司</div>
              <div class="member-item">中国合力叉车有限公司</div>
              <div class="member-item">中国合力叉车有限公司</div>
            </div>
            <div class="member-column">
              <div class="member-item">卓越五金责任有限公司</div>
              <div class="member-item">越南奥博环保科技有限公司</div>
              <div class="member-item">珍香责任有限公司/龙门...</div>
              <div class="member-item">越南同德有限责任公司</div>
              <div class="member-item">青岛啤酒越南有限公司</div>
            </div>
            <div class="member-navigation">
              <img src="@/assets/home/arrow4.png" alt="左箭头" />
              <img src="@/assets/home/arrow3.png" alt="右箭头" />
            </div>
          </div>
        </div>
      </section>
    </div>
    <div class="content">
      <div class="title">
        <h2>加入协会</h2>
        <p>聚焦商会新闻，熟悉商会动态，快速了解您身边的资讯</p>
      </div>
      <!-- 加入协会部分 -->
      <section class="join-association">
        <div class="join-content">
          <div class="join-card">
            <div class="join-card-content">
              <h3>胡志明分会</h3>
              <p>
                胡志明市是越南最大的城市和经济中心，位于湄公河三角洲东北部...
              </p>
              <button class="join-btn">加入协会</button>
            </div>
          </div>
          <div class="join-card">
            <div class="join-card-content">
              <h3>河内分会</h3>
              <p>
                作为越南首都，河内市在政治、文化和经济方面具有重要地位，2023年GDP排名全国第...
              </p>
              <button class="join-btn">加入协会</button>
            </div>
          </div>
        </div>
      </section>
    </div>
    <div class="blank"></div>
    </div>
  </main>
</template>
<style scoped lang="scss">
.container{
  width: 2000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .blank{
    height: 60px;
  }
}
:deep(.el-carousel__container) {
  height: 750px;
}
.lunbo-img {
  width: 100%;
  height: 750px;
}
:deep(.el-carousel__indicators--horizontal) {
  display: none;
}
:deep(.el-carousel__arrow) {
  display: none;
}
.top-banner {
  position: relative;
  .banner-cont {
    position: absolute;
    z-index: 100;
    width: 1080px;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .banner-title {
    width: 1080px;
    height: 232px;
    h2 {
      font-family: SourceHanSansCN-Revision;
      font-size: 90px;
      font-weight: 500;
      line-height: normal;
      letter-spacing: 0em;

      font-variation-settings: "opsz" auto;
      font-feature-settings: "kern" on;
      color: #ffffff;

      z-index: 0;
      margin-bottom: 40px;
      text-align: center;
    }
    p {
      font-family: SourceHanSansCN-Revision;
      font-size: 40px;
      font-weight: 500;
      line-height: normal;
      letter-spacing: 0em;

      font-variation-settings: "opsz" auto;
      font-feature-settings: "kern" on;
      color: #ffffff;
      text-align: center;
      z-index: 1;
    }
  }
  .banner-more {
    margin-top: 65px;
    width: 212px;
    height: 89px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    cursor: pointer;
    background: #ffffff;
    font-family: MicrosoftYaHei;
    font-size: 22px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;

    font-variation-settings: "opsz" auto;
    /* text1 */
    color: #141933;

    z-index: 0;
    img {
      width: 24px;
      height: 24px;
    }
  }
}
.content {
  position: relative;
  padding: 162px 110px 0 110px;
  margin-top: 60px;
  .title {
    height: 162px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  .title h2 {
    font-family: MicrosoftYaHei;
    font-size: 44px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    width: 100%;
    text-align: center;
    margin-bottom: 22px;
  }
  .title p {
    font-family: MicrosoftYaHei;
    font-size: 22px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    text-align: center;
  }
}

/*重要新闻*/
.news {
  display: flex;
  .news-item {
    width: 800px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.6) 100%
    );

    /* shadow 01 */
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
    border-radius: 30px;
    &:nth-child(1) {
      margin-right: 100px;
    }
  }
  .top-img {
    position: relative;
    width: 100%;
    height: 533px;
    border-radius: 30px 30px 0px 0px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 30px 30px 0px 0px;
    }
    p {
      font-family: MicrosoftYaHei;
      font-size: 38px;
      font-weight: normal;
      line-height: normal;
      letter-spacing: 0em;

      font-variation-settings: "opsz" auto;
      color: #ffffff;
      padding: 0 60px;
      position: absolute;
      bottom: 55px;
      z-index: 10;
    }
  }
  .bottom-cont {
    width: 100%;
    height: 213px;
    padding: 40px 60px;
    background: #fff;
    border-radius: 0 0 30px 30px;
    p:nth-child(1) {
      font-family: MicrosoftYaHei;
      font-size: 28px;
      font-weight: normal;
      line-height: normal;
      letter-spacing: 0em;

      font-variation-settings: "opsz" auto;
      /* TEXT2 */
      color: #737373;
      margin-bottom: 30px;
    }
    p:nth-child(2) {
      font-family: MicrosoftYaHei;
      font-size: 22px;
      font-weight: normal;
      line-height: normal;
      letter-spacing: 0em;

      font-variation-settings: "opsz" auto;
      /* line1 */
      color: #c2c2c2;

      z-index: 1;
    }
  }
}

/*会员服务*/
.lunbo-img-box {
  position: relative;
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(50%);
    width: 30px;
    height: 64px;
    cursor: pointer;
  }
  .left-arrow {
    left: 55px;
  }
  .right-arrow {
    right: 55px;
  }
  .el-carousel {
    width: 100%;
    height: 575px;
  }
}
.lunbo-img-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  // height: 575px;
  img {
    width: 520px;
    height: 575px;
  }
}

/* 关于我们样式 */
.about-us {
  width: 1700px;
  margin: 60px auto;
  position: relative;
}

.about-content {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
}

.about-left {
  position: relative;
  width: 794px;
  height: 523px;
  background: url("../assets/home/bj1.png") no-repeat 0% 100%;
}

.about-left img {
  width: 770px;
  height: 513px;
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 24px;
  object-fit: cover;
}

.about-left::before {
  content: "";
  position: absolute;
  width: 718px;
  height: 444px;
  background: linear-gradient(270deg, rgba(200, 20, 20, 0) NaN%, #a41919 100%);
  border-radius: 0 0 30px 30px;
  top: 79px;
  left: 0;
}

.about-right {
  width: 760px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-title span {
  color: #b0b0b0;
  font-size: 22px;
}

.section-title h2 {
  font-size: 44px;
  font-weight: bold;
  color: #141933;
}

.about-right p {
  font-size: 28px;
  color: #141933;
  line-height: 1.5;
}

.more-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0071d9;
  font-size: 18px;
  cursor: pointer;
  img{
    width: 20px;
    height: 20px;
  }
}

.about-us-en {
  position: absolute;
  right: 0;
  top: -28px;
  font-size: 60px;
  color: #e6e5e5;
  font-family: "Alata", sans-serif;
  z-index: -1;
}

/* 会员展示样式 */
.member-showcase {
  width: 1700px;
  margin: 60px auto;
}

.member-content {
  background: url("../assets/home/huiyuan1.png") no-repeat 100% 100%;
  border-radius: 30px;
  height: 717px;
  padding: 64px 82px;
  position: relative;
  color: #ffffff;
}
.member-list {
  position: absolute;
  left: 0px;
  top: 56px;
  width: 1060px;
  height: 661px;
  opacity: 1;

  /* 自动布局 */
  display: flex;
  justify-content: center;
  padding: 64px 82px;

  background: #c81414;
}

.member-column {
  flex: 1;
}

.member-item {
  font-size: 30px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.member-item:last-child {
  border-bottom: none;
}

.member-navigation {
  position: absolute;
  bottom: 64px;
  right: 82px;
  display: flex;
  gap: 39px;
}

.member-navigation img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* 加入协会样式 */
.join-association {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.join-content {
  display: flex;
  gap: 200px;
}

.join-card {
  width: 700px;
  height: 392px;
  border-radius: 30px;
  box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.join-card:first-child {
  background: linear-gradient(270deg, rgba(200, 20, 20, 0) 0%, #c81414 100%),
    url("../assets/home/bj3.png");
  background-size: cover;
}

.join-card:last-child {
  background: linear-gradient(270deg, rgba(0, 90, 171, 0) 0%, #005aab 38%),
    url("../assets/home/bj4.png");
  background-size: cover;
}

.join-card-content {
  padding: 50px 81px;
  color: #ffffff;
}

.join-card-content h3 {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
}

.join-card-content p {
  font-size: 22px;
  margin-bottom: 50px;
  line-height: 1.5;
}

.join-btn {
  background: transparent;
  border: 3px solid #ffffff;
  border-radius: 60px;
  padding: 20px 40px;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}
</style>
